{if $type == "textarea"}
<textarea name="{$name}" title="{$placeholder}" style="{if $width}width: {$width};{/if}height: 0px;">{if $value}{$value}{else}{$placeholder}{/if}</textarea>
{else}
<input class="input-text{if !$value} inactive{/if}" {if $type=="date"}id="calendar"{/if} name="{$name}" maxlength="{$maxlength}" {if $width}style="width: {$width};"{/if} value="{if $value}{$value}{else}{$placeholder}{/if}" placeholder="{$placeholder}" title="{$placeholder}" onfocus="fieldHint(this, 1);" onblur="fieldHint(this, 0);" />
{/if}